{include file="header.html"}

<script type="text/javascript">
//<!CDATA[
$(function(){
  
    
    $("#search").click(function(){
    	$("#act").val("index");

    	$("#form1").submit();
    });
});
//]]>
</script>

<div id="rightTop">
	<p>运单监控</p>
	<ul class="subnav">
	</ul>
</div>
<div class="mrightTop">
	<div class="fontl">
		<form method="get">
			<div class="left">

                    <input type="hidden" name="app" value="waybill" />
                <input type="hidden" name="act" value="index" />
                运单号:
                <input class="queryInput" type="text" name="wm_code" value="{$smarty.get.wm_code}"  style="width: 80px"/>
                车牌号:
                <input class="queryInput" type="text" name="wm_vhc_code" value="{$smarty.get.wm_vhc_code}" style="width: 60px" />
                	司机:
                <input class="queryInput" type="text" name="wm_driver" value="{$smarty.get.wm_driver}" style="width: 60px" />
  运单类型:
                <select class="querySelect" id="type_id" name="type_id">
                <option value="">{$lang.select_pls}</option>
                {html_options options=$types selected=$smarty.get.type_id}
                </select>
             运单状态:
                <select class="querySelect" id="status" name="status">
                <option value="">{$lang.select_pls}</option>
                {html_options options=$status selected=$smarty.get.status}
                </select>
                <input type="submit" class="formbtn" value="{$lang.query}" />
          
           
                  
                  
                  
			</div>
		</form>
	</div>
	<div class="fontr">{include file=page.top.html}</div>
	<div class="clear:both;"></div>
</div>
<div class="tdare">
	<table width="100%" cellspacing="0" class="dataTable">
		<!--{if $waybill}-->
		<tr class="tatr1">
			<td style="display: none;" width="20" class="firstCell"><input type="checkbox"
				class="checkall" />
			</td>
			<td >{$lang.wm_stauts}</td>
			<td>{$lang.wm_type}</td>
			<td >运单号</td>
			<td>车牌号</td>
			<td>{$lang.wm_driver}</td>
			<td>{$lang.wm_opdate}</td>
			<td>开始时间</td>
			<td>完成时间</td>
			<td style="width: 200px">{$lang.handler}</td>
		</tr>
		<!--{/if}-->
		<!--{foreach from=$waybill item=w}-->
		<tr class="tatr2">
			<td class="firstCell">{$w.wm_stauts|escape}</td>
			<td>{$w.wm_type|escape}</td>
			<td>{$w.wm_code|escape}</td>
			<td>{$w.wm_vhc_code}</td>
			<td>{if $w.wm_driver}{$w.wm_driver}{else}-{/if} {if $w.wm_driver_tel} / {/if}{$w.wm_driver_tel}</td>
			<td>{if $w.wm_opdate}{$w.wm_opdate|date:Y-m-d H:i}{else}-{/if}</td>
			<td>{if $w.wm_accepted_time}{$w.wm_accepted_time|date:Y-m-d H:i}{else}-{/if}</td>
			<td>{if $w.wm_complete_time}{$w.wm_complete_time|date:Y-m-d H:i}{else}-{/if}</td>
                <td align="right">
                   {if $w.wm_stauts!='新建'}    <a href="index.php?app=map&carid={$w.wm_uuid}&code={$w.wm_tid}&id={$w.wm_tid}" target="_blank">地图</a>{/if}
                </td>
		</tr>
		<!--{foreachelse}-->
		<tr class="no_data">
			<td colspan="9">{$lang.no_data}</td>
		</tr>
		<!--{/foreach}-->
	</table>
	<!--{if $waybill}-->
	<div id="dataFuncs">
		<div class="pageLinks">{include file=page.bottom.html}</div>
		<div id="batchAction" class="left paddingT15" style="display: none;">
			&nbsp;&nbsp;
			 <input class="formbtn batchButton" type="button"
				value="{$lang.drop}" name="id" uri="index.php?app=waybill&act=drop"
				presubmit="confirm('{$lang.drop_confirm}');" /> &nbsp;&nbsp;
			<!--<input class="formbtn batchButton" type="button" value="lang.update_order" name="id" presubmit="updateOrder(this);" />-->
		</div>
		<div class="clear:both;"></div>
	</div>
	<div class="clear"></div>
	<!--{/if}-->
</div>
{include file="footer.html"}
